#include<iostream.h>
#include<stdio.h>
#include<conio.h>
/*
  This function returns no of zeros in the factorial N.
*/
int getNoOfZerosInFactorial(int givenNo)
{
    int count = 0;
    if(givenNo<0)
        return -1;
    for(int i=5; givenNo/i>0; i*=5)
    {
            count = count + givenNo/i ;       
    }
    return count;
}

void test_noOfZerosInFactorial()
{
     int givenNo = 1000,noOf0;
     noOf0 = getNoOfZerosInFactorial(givenNo);
     cout<<"\n\n\nno of zero "<<noOf0<<" ";
}
int main()
{
    test_noOfZerosInFactorial();
    return 0;
}
